<%-- 
    Document   : KhungDangNhap
    Created on : Oct 3, 2011, 10:46:47 PM
    Author     : miayeu
--%>

<%@page import="DatabasePOJO.user"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
 <script type='text/javascript'>
           <%
                 String thongBao= " ";
                if( request.getAttribute("DN")!=null){
                    thongBao= (String)request.getAttribute("DN");
           %>
                alert("<%=thongBao%>");
                <%} %>
                <%
                if( request.getAttribute("DK")!=null){
 
                    thongBao= (String)request.getAttribute("DK");
           %>
                alert("<%=thongBao%>");
                <%}
                                                                 
            %>
        </script>
<link href="js/6aad56467af659b339ae1ac0efc96d0b_2010110100.css" rel="stylesheet" type="text/css" />
   <!--Khung nh?n ??ng nh?p hay ??ng kí-->  
     <%
                
                if( request.getAttribute("Ki")!=null){
                    thongBao= (String)request.getAttribute("Ki");
           %>
               <h1><%=thongBao%></h1>
                <%} %>
   <%
          user kh = null;
          if(session.getAttribute("KhachHang")!=null){
                kh=(user)session.getAttribute("KhachHang");
           }
           if(kh!= null){
               
            %>
            <h1><%=kh.getTenDangNhap()%></h1>
            <div class="userMenuRight hide">
 
        <ul class="Login JsAjaxLoginMenuUser">
                            				
            <li>
                <a href="index.jsp?DangNhap=true" title="Dang nhap">Đăng Nhập</a> |
            </li>
    
            <li>
                <a href="index.jsp?DangKi=true" title="Dang ký" id="typeReg">Đăng ký</a>
            </li>
	     </ul>
        </div>
            <div >
             <ul>
                   <li><a href="index.jsp?CapNhatNguoiDung=true" title="Thông tin cá nhân">Thông tin cá nhân</a></li>
                   <li><a href="#" title="Thông tin mua deal">Thông tin mua deal</a></li>
                                <li><a href="DangNhap?Action=Logout" class="logout-link" title="Thoát">Thoát</a></li>
             </ul>
         </div>
            <%
                       }else{
            %>
        <div >

                <ul class="Login JsAjaxLoginMenuUser">

                    <li>
                        <a href="index.jsp?DangNhap=true" title="Dang nhap">Đăng Nhập</a> |
                    </li>

                    <li>
                        <a href="index.jsp?DangKi=true" title="Dang ký" id="typeReg">Đăng ký</a>
                    </li>
                     </ul>
        </div>
 
 <!--Ch? xu?t hi?n khi ??ng nh?p thành công-->                                      
<div class="userMenuRight hide">
     <ul>
           <li><a href="index.jsp?Action=CapNhatNguoiDung" title="Thông tin cá nhân">Thông tin cá nhân</a></li>
           <li><a href="#" title="Thông tin mua deal">Thông tin mua deal</a></li>
			<li><a href="DangNhap?Action=Logout" class="logout-link" title="Thoát">Thoát</a></li>
     </ul>
</div>
<%}%>